﻿using System.ComponentModel.DataAnnotations;

namespace DevProtocolApi.Dtos.system
{
    public class LoginDto
    {
        [Required(ErrorMessage = "用户名不能为空")]
        [StringLength(20, MinimumLength = 4)]
        public string Username { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [DataType(DataType.Password)]
        [StringLength(32, MinimumLength = 6)]
        public string Password { get; set; }
    }
}
